/* 
 *   Date       Developer         Description
 *   2017-09-07 周成功      新建
 * 
 *
 *   Classname:  com.titan.demo.commons.RowMapper.Player1MoneyRowMapper
 * 
 *   The source code contained in this listing is proprietary to
 *   Baby Footmarks studio.
 * 
 *   Unauthorized copying, adaptation, distribution, use, or display
 *   is strictly prohibited.
 *   This software is Copyright 2017 Baby Footmarks studio.
 */
package com.titan.demo.commons.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.titan.core.base.BaseRowMapper;
import com.titan.demo.commons.domain.Player1MoneyDomain;


/**
 * 根据数据库表player1_money创建的RowMapper类
 *
 * @author 周成功
 *
 */
public class Player1MoneyRowMapper extends BaseRowMapper<Player1MoneyDomain> {
    public Player1MoneyDomain mapRow(ResultSet rs, int rowNum) throws SQLException {
        Player1MoneyDomain ro = new Player1MoneyDomain();
        ro.setId(getString(rs, "id", null));
        ro.setCreatetime(getLong(rs, "createtime", 0));
        ro.setPlay(getString(rs, "play", null));
        ro.setPlayid(getString(rs, "playid", null));
        ro.setMoney_old(getInt(rs, "money_old", 0));
        ro.setMoney_var(getInt(rs, "money_var", 0));
        ro.setMoney_new(getInt(rs, "money_new", 0));
        ro.setCreate_name(getString(rs, "create_name", null));
        ro.setCreate_dt(getTimestamp(rs, "create_dt", null));
        ro.setUpdate_name(getString(rs, "update_name", null));
        ro.setUpdate_dt(getTimestamp(rs, "update_dt", null));
        ro.setDelete_flag(getString(rs, "delete_flag", null));
        ro.setDelete_name(getString(rs, "delete_name", null));
        ro.setDelete_dt(getTimestamp(rs, "delete_dt", null));
        return ro;
    }
}

